package com.webside.playbackstatistics.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.webside.base.basemapper.BaseMapper;
import com.webside.playbackstatistics.model.SeriesStatEntity;
import com.webside.resource.model.ResourceEntity;

/***
 * lpz
 * 
 * @author Administrator
 *
 */
@Repository
public interface SeriesStatMapper extends BaseMapper<ResourceEntity, Long> {

	// 根据传入的片名统计该片历史的每天平均点播量，播放时长，评论数，点赞数
	public SeriesStatEntity conditionCommentAvg(@Param("timeTypeName") String timeTypeName);

	// 获取频道数据
	public List<SeriesStatEntity> channelList();

	// 根据频道进行统计
	public Integer statPlaySumChannel(@Param("channel") String channel);

	// 根据剧集类型进行统计
	public Integer statPlaySumKind(@Param("channel") String channel, @Param("kind") String kind);

	// 根据剧情类型进行统计
	public Integer statPlaySumType(@Param("channel") String channel, @Param("type") String type);

	// 查询所有剧集信息
	public List<SeriesStatEntity> getSelectAllList();
}
